package com.baizhi.action;

import java.util.List;

import com.baizhi.entity.Category;
import com.baizhi.service.CategoryService;
import com.baizhi.service.impl.CategoryServiceImpl;
import com.opensymphony.xwork2.ActionSupport;

/**
 * @author 王雪洋
 * @Time 2017年5月2日 上午9:28:40
 * @disc:  分类信息Action
 */
public class CategoryAction extends ActionSupport {
	private List<Category> clists;
	private CategoryService cs = new CategoryServiceImpl();
	private Category category = new Category();
	private Integer cid;
	private Integer ccid;
	/*
	 * 查询所有分类信息
	 */
	public String getAllCategory(){
		clists = cs.findAllCategory();
		return SUCCESS;
	}
	public List<Category> getClists() {
		return clists;
	}
	public void setClists(List<Category> clists) {
		this.clists = clists;
	}
	public Category getCategory() {
		return category;
	}
	public void setCategory(Category category) {
		this.category = category;
	}
	public Integer getCid() {
		return cid;
	}
	public void setCid(Integer cid) {
		this.cid = cid;
	}
	public Integer getCcid() {
		return ccid;
	}
	public void setCcid(Integer ccid) {
		this.ccid = ccid;
	}
}
